package no.ntnu.fp.model.events;

import java.util.ArrayList;
import java.util.List;
import no.ntnu.fp.model.Notice;

@SuppressWarnings("serial")
public class NoticesChangedEvent extends ModelEvent {
	private final List<Notice> oldNotices, newNotices;

	public NoticesChangedEvent(Object source, List<Notice> oldNotices, 
			List<Notice> newNotices) {
		super(source);
		this.oldNotices = new ArrayList<Notice>(oldNotices);
		this.newNotices = new ArrayList<Notice>(newNotices);
	}
	
	public List<Notice> getOldNotices(){
		return new ArrayList<Notice>(oldNotices);
	}
	
	public List<Notice> getNewNotices(){
		return new ArrayList<Notice>(newNotices);
	}

}
